﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;

namespace MenuService.EntityFrameworkCore;

[DependsOn(
    typeof(MenuServiceDomainModule),
    typeof(AbpEntityFrameworkCoreModule)
)]
public class MenuServiceEntityFrameworkCoreModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAbpDbContext<MenuServiceDbContext>(options =>
        {
            options.AddDefaultRepositories();
            /* Add custom repositories here. Example:
             * options.AddRepository<Question, EfCoreQuestionRepository>();
             */
        });
    }
}
